package starsservice.com.kc.Util;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.ToString;
import org.springframework.stereotype.Component;

@Data
@ToString
@AllArgsConstructor
@Component
public class ResponseJson {

    private int code;

    private String msg;

    private Object date;

    public ResponseJson() {
    }

//    public ResponseBean set(int code, String msg, Object date) {
//        this.code = code;
//        this.msg = msg;
//        this.date = date;
//        return new ResponseBean(code, msg, date);
//    }

    public void setAll(int code, String msg, Object date) {
        this.code = code;
        this.msg = msg;
        this.date = date;
    }
}
